package com.hexiaohe.springboot_vue_app.service.impl;

import com.hexiaohe.springboot_vue_app.entity.Role;
import com.hexiaohe.springboot_vue_app.mapper.RoleMapper;
import com.hexiaohe.springboot_vue_app.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    RoleMapper roleMapper;

    @Override
    public List<Role> getAllRoles() {
        List<Role> roles = roleMapper.selectList(null);
        return roles;
    }
}
